package com.flin.icesilkworm.examination.bas.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.flin.icesilkworm.examination.bas.constant.ITheBasicTeacherConstant;
import com.flin.icesilkworm.examination.bas.model.TheBasicTeacher;
import com.flin.icesilkworm.examination.bas.service.ITheBasicTeacherService;
import com.flin.icesilkworm.examination.extfunc.IExtFunction;
import com.flin.icesilkworm.examination.gen.bas.service.GeneratedTheBasicTeacherService;
import com.flin.icesilkworm.framework.utils.Md5Utils;
@Service("theBasicTeacherService")
@Transactional
public class TheBasicTeacherServiceImpl extends GeneratedTheBasicTeacherService implements IExtFunction,ITheBasicTeacherService,ITheBasicTeacherConstant{

	
	
	@Transactional
	public Long saveTheBasicTeacher(TheBasicTeacher t) {
		 md5Password(t.getPassword(), t::setPassword);
		 return super.saveTheBasicTeacher(t);
	}
	
	@Transactional
	public boolean updTheBasicTeacher(TheBasicTeacher t) {
		 md5Password(t.getPassword(), t::setPassword);
		 return super.updTheBasicTeacher(t);
	}

}